<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue2.js"></script>
</head>
<body>
    <div id="box">
        <divvv>
            <div slot="a">111</div>
            <div slot="b">333</div>
            <div slot="a">222</div>
        </divvv>
    </div>
    <script>
        Vue.component('divvv',{
            template:`<div>
                    <slot name='a'></slot>
                    <slot name='b'></slot>
                    <slot></slot>
                <div>`
        })
        new Vue({
            el:'#box',
            data:{

            }
        })
    </script>
</body>
</html>